package com.dragon.quartz.job;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.lang.NonNull;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;

/**
 * DongAoJob
 *
 * <p>参考文档 https://cloud.tencent.com/developer/article/1947192</p>
 *
 * @author dragon
 * @version 1.0
 * @date 2024/9/5 17:35
 */
@Component
public class DongAoJob extends QuartzJobBean {

    private static final Logger log = LoggerFactory.getLogger(DongAoJob.class);

    @Override
    protected void executeInternal(@NonNull JobExecutionContext context) throws JobExecutionException {
        log.info("幼年是盼盼，青年是晶晶，中年是冰墩墩，生活见好逐渐发福");
    }

    public void test() {
        log.info("幼年是盼盼，青年是晶晶，中年是冰墩墩，生活见好逐渐发福2");
    }

}
